<body onLoad="document.forms[0].elements[0].focus();">

***Modify the number in "elements[0]" if there are hidden inputs before the text input ***